package org.setone.common;

import javax.jws.WebService;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.setone.utils.ReadPropertyPlaceholder;
import org.springframework.beans.factory.annotation.Autowired;
public abstract class BaseAction implements ServletRequestAware{
	@Autowired
	ReadPropertyPlaceholder readPropertyPlaceholder;
	
	@Override
	public void setServletRequest(HttpServletRequest req) {
		req.setAttribute("webPath", readPropertyPlaceholder.getProperty("webPath"));
		req.setAttribute("imgPath", readPropertyPlaceholder.getProperty("imgPath"));
		req.setAttribute("wsPath", readPropertyPlaceholder.getProperty("wsPath"));
	}
}
